# -*- coding: utf-8 -*-



import calendar

yy = int(input("输入年份"))
mm = int(input("输入月份"))

print(calendar.month(yy,mm))